/* 入库单据页面专用样式 */

/* 单据表格样式 */
.document-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.document-table th,
.document-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.document-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.document-table tr:hover {
    background-color: #f5f5f5;
}

/* 单据详情样式 */
.document-detail {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.document-detail h3 {
    margin-top: 0;
    color: #333;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
}

/* 表单样式 */
.document-form {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.document-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-form .form-row:last-child {
    margin-bottom: 0;
}

.document-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}